<fieldset>

    <legend>条件搜索</legend>

    <form class="layui-form layui-form-pane form-search" action="{:sysuri()}" onsubmit="return false" method="get" autocomplete="off">
        <div class="layui-form-item layui-inline">

            <label class="layui-form-label">属性名称</label>

            <label class="layui-input-inline">

                <input name="name" value="{$get.name|default=''}" placeholder="请输入名称" class="layui-input">

            </label>

        </div>

        <div class="layui-form-item layui-inline">

            <label class="layui-form-label">属性类型</label>

            <label class="layui-input-inline">

                <select name="types" id="">
                    <option value="" >全部</option>
                    <option value="input" >文本</option>
                    <option value="select">下拉选择</option>
                    <option value="checkbox">多选</option>
                </select>

            </label>

        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">产品分类</label>
            <div class="layui-input-inline">
                <select class="layui-select"  name="cate_id" lay-search>
                    <option value="">选择分类</option>
                    {foreach $parent_cate as $cate}
                        <option {if isset($vo.parent_id) and $vo.parent_id eq $cate.id} selected{/if} disabled value="{$cate.id}">{$cate.title|default=''}</option>
                        {foreach $cate.child_cate_2 as $cate2}
                            {if $cate2 === end($cate.child_cate_2)}
                                <option {if isset($vo.cate_id) and $vo.cate_id eq $cate2.id} selected{/if}  disabled value="{$cate2.id}">╚ {$cate2.title|default=''}</option>
                            {else}
                                <option {if isset($vo.cate_id) and $vo.cate_id eq $cate2.id} selected{/if} disabled  value="{$cate2.id}">╠ {$cate2.title|default=''}</option>
                            {/if}
                            {foreach $cate2.child_cate_3 as $cate3}
                                {if $cate3 === end($cate2.child_cate_3)}
                                    <option {if isset($vo.cate_id) and $vo.cate_id eq $cate3.id} selected{/if} value="{$cate3.id}"> └─ {$cate3.title|default=''}</option>
                                {else}
                                    <option {if isset($vo.cate_id) and $vo.cate_id eq $cate3.id} selected{/if} value="{$cate3.id}"> ├─ {$cate3.title|default=''}</option>
                                {/if}
                            {/foreach}
                        {/foreach}
                    {/foreach}
                </select>
                
            </div>
        </div>


        <div class="layui-form-item layui-inline">

            <input type="hidden" name="type" value="{$type|default='index'}">

            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>

        </div>

    </form>

</fieldset>